package com.shiguiwu.springmybatis.spring.transaction.propagation;

import com.shiguiwu.springmybatis.spring.transaction.TransactionTests;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @description:
 * @author: stone
 * @date: Created by 2021/6/15 12:49
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.transaction.propagation
 */
public class NestedTests {

    public static void main(String[] args) throws Exception {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(TransactionTests.class);

        TxService3 txService3 = context.getBean(TxService3.class);

        //txService3.notransaction_exception_nested();
        //txService3.transaction_exception_nested();
        txService3.transaction_exception_nestedx();







    }
}
